import app from '/shop/store/app.js';
import $platform from '/shop/platform';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import duration from 'dayjs/plugin/duration';
import 'dayjs/locale/zh-cn';


const shop = {}
dayjs.locale('zh-cn');
dayjs.extend(relativeTime);
dayjs.extend(duration);

export async function  shopInit() {
	// 应用初始化
	await app().init();

	// 平台初始化加载(各平台provider提供不同的加载流程)
	$platform.load();
}

export default shop